package com.order.entities;

import com.common.entities.AbstractDomainEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Component
@Entity
@Table(name = "orderdetailet")
public class OrderDetailet extends AbstractDomainEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Schema(description = "订单明细id")
    private Integer id;
    @Schema(description = "所属订单编号")
    private Integer orderId;
    @Schema(description = "所属食品编号")
    private Integer foodId;
    @Schema(description = "数量")
    private  Integer quantity;

}
